package com.zyx.controller;

import com.zyx.model.resp.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/7 15:43
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/get")
    public CommonResult<String> getHello() {
        int i = 1 / 0;
        return CommonResult.success("hello");
    }
}
